import store from "./store";
import { USER_INFO_ADD, UserInfoAdd } from "./actions";
import { getStorage } from "@/utils/global/storage";

// 获取用户信息，防止刷新丢失
const userInfo = getStorage(USER_INFO_ADD);
userInfo && Object.keys(userInfo).length > 0 && store.dispatch(UserInfoAdd(userInfo));
export default store;
